package org.gangcai.mac.shop.bean;

import java.util.List;

/**
 * Created by mac on 2018/4/16.
 */

public class BillBean extends CommonResonseBean {

    private List<InfoBean> info;

    public List<InfoBean> getInfo() {
        return info;
    }

    public void setInfo(List<InfoBean> info) {
        this.info = info;
    }

    public static class InfoBean {
        /**
         * img : Public/Uploads/5abc9216607d4.png
         * goods_name : 小米25
         * money : 0.01
         * id : 13
         * should_pay : 2018-04-17
         * state : 1
         * order_id : 34
         */

        private String img;
        private String goods_name;
        private String money;
        private String id;
        private String should_pay;
        private int state;
        private String order_id;

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getMoney() {
            return money;
        }

        public void setMoney(String money) {
            this.money = money;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getShould_pay() {
            return should_pay;
        }

        public void setShould_pay(String should_pay) {
            this.should_pay = should_pay;
        }

        public int getState() {
            return state;
        }

        public String getStateString() {
            if (state == 1) {
                return "还款中";
            } else if (state == 2) {
                return "已还清";
            } else if (state == 3) {
                return "已逾期";
            }
            return "";
        }


        public void setState(int state) {
            this.state = state;
        }

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }
    }
}
